<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录</title>
<link href="css/style.css"
	rel="stylesheet" type="text/css" />
<script language="JavaScript"
	src="js/jquery.js"></script>
<script src="js/cloud.js"
	type="text/javascript"></script>

<script language="javascript">
	$(function(){
    $('.loginbox').css({'position':'absolute','left':($(window).width()-692)/2});
	$(window).resize(function(){  
    $('.loginbox').css({'position':'absolute','left':($(window).width()-692)/2});
    })  
});  
</script>

</head>

<body
	style="background-color: #1c77ac; background-image: url(images/light.png); background-repeat: no-repeat; background-position: center top; overflow: hidden;">



	<div id="mainBody">
		<div id="cloud1" class="cloud"></div>
		<div id="cloud2" class="cloud"></div>
	</div>


	<div class="logintop">
		<span>欢迎登录后台管理界面平台</span>
		<ul>
			<li><a href="#">回首页</a></li>
			<li><a href="#">帮助</a></li>
			<li><a href="#">关于</a></li>
		</ul>
	</div>

	<div class="loginbody">
        <span class="systemlogo"></span>

        <div class="loginbox">
            <% if (request.getAttribute("errorMessage") != null) { %>
                <div style="color:red; text-align:center; margin-bottom: 10px;">
                    <%= request.getAttribute("errorMessage") %>
                </div>
            <% } %>
            
            <ul>
                <form action="login" method="post">
                    <li><input name="username" type="text" class="loginuser"
                        value="<%= request.getParameter("username") != null ? request.getParameter("username") : "admin" %>" 
                        onclick="JavaScript:this.value=''" />
                    </li>
                    <li><input name="password" type="password" class="loginpwd"
                        value="<%= request.getParameter("password") != null ? request.getParameter("password") : "123456" %>" 
                        onclick="JavaScript:this.value=''" />
                    </li>
                    <li><button type="submit" class="loginbtn">提交</button></li>
                </form>
            </ul>
        </div>
    </div>
    <div class="loginbm">
        版权所有 2013 <a href="http://www.uimaker.com">uimaker.com</a>
        仅供学习交流，勿用于任何商业用途
    </div>
	
</body>
</html>